package com.gjzhao.fmmall.service.feign;

import com.gjzhao.fmmall.entity.Users;
import com.gjzhao.fmmall.service.feign.fallback.UserAddClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Description: 用户添加客户端
 * @Author: gjzhao
 * @Date Created in 2022-02-12 11:33 下午
 */
@FeignClient(value = "fmmall-user-add", fallback = UserAddClientFallback.class)
public interface UserAddClient {

    //添加用户:post请求默认使用body传值
    @PostMapping("user/add")
    public int add(Users user);
}
